package org.cedar.syntaxcore;

import java.util.Date;
import java.text.ParseException;

/**
 * <p>Title: 表达式语法分析</p>
 *
 * <p>Description: </p>
 *
 * <p>Copyright: Copyright (c) 2005</p>
 *
 * <p>Company: net.wzh</p>
 *
 * @author wzh
 * @version 1.0
 */
public class DateUtil {
    public DateUtil() {
    }

    public static Date parseDate(String dateStr) throws ParseException {
        return Consts.simpleDateFormat.parse(dateStr);
    }

    public static String formatDate(Date date) {
        return Consts.simpleDateFormat.format(date);
    }
}
